<?php

require_once( 'flexical/admin/response.php' );

abstract class Flexical_Admin_Basic_Query_Response extends Flexical_Admin_Response
{
	public $queries;

	public function __construct( $queries = null )
	{
		$this->queries = $queries;
	}
}

abstract class Flexical_Admin_Detail_Query_Response extends Flexical_Admin_Basic_Query_Response
{
	public $query;

	public function __construct( $query = null, $queries = null )
	{
		parent::__construct( $queries );
		$this->query = $query;
	}
}

class Flexical_Admin_Show_Queries_Response extends Flexical_Admin_Basic_Query_Response
{
	public $canceled = false;
}

class Flexical_Admin_Create_Query_Response extends Flexical_Admin_Detail_Query_Response
{
}

class Flexical_Admin_Edit_Query_Response extends Flexical_Admin_Detail_Query_Response
{
}

class Flexical_Admin_Update_Query_Response extends Flexical_Admin_Detail_Query_Response
{
}

class Flexical_Admin_Confirm_Delete_Query_Response extends Flexical_Admin_Detail_Query_Response
{
}

class Flexical_Admin_Delete_Query_Response extends Flexical_Admin_Detail_Query_Response
{
}

class Flexical_Admin_Delete_All_Queries_Response extends Flexical_Admin_Basic_Query_Response
{
	public $confirmed;

	public function __construct( $confirmed = false, $queries = null )
	{
		parent::__construct( $queries );
		$this->confirmed = $confirmed;
	}
}

class Flexical_Admin_Cant_Delete_Query_In_Use_Response extends Flexical_Admin_Detail_Query_Response
{
	public $listings_using_query;

	public function __construct( $query, $listings_using_query, $queries )
	{
		parent::__construct( $query, $queries );
		$this->listings_using_query = $listings_using_query;
	}
}

class Flexical_Admin_Cant_Delete_Queries_In_Use_Response extends Flexical_Admin_Basic_Query_Response
{
}

?>
